Exchange 2007-  saving  mailbox filters
Hi, Is there any way of saving mailbox filters that you create within the console so that you can use them at a later date? Thanks Jamos J
September 23rd, 2008 4:09pm

Hi Jamos, You can save one filter as a default filter but it is not possible to save multiple filters. Check the procedure in below article. How to Filter the Result Pane http://technet.microsoft.com/en-us/library/bb124566(EXCHG.80).aspx Instead of that, you can use Exchange Management Shell to get the same kind of result with multiple cmdlet and filter the result with various conditional attributes in advance and of course you can save the command for future purpose in your database Example: Get all the mailboxes with recipient type is UserMailbox, Company is CompanyXYZ & Office is OfficeABC Get-Mailbox -Filter {RecipientType -eq 'UserMailbox' -and Company -eq 'CompanyXYZ' -and Office -eq 'OfficeABC'} Filterable Properties for the -Filter Parameter in Exchange 2007 SP1 http://technet.microsoft.com/en-us/library/bb738155(EXCHG.80).aspx
Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2008 4:36pm

Hi, Thanks for the reply. Which database would I be saving the commands in? Thanks Jamos J
September 23rd, 2008 4:48pm

I mean,a word or excel file.
Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2008 4:50pm

Hi, I have just tried the shell command Get-Mailbox -Filter {RecipientType -eq 'legacy mailbox' -and last name -eq 'yates' -and department -eq 'crs ict' but it is not working. Is this because the "legacy mailbox" is on a exchange 2000 box? Thanks Jamos J
September 23rd, 2008 5:04pm

Hello Jamos, Well, you need to see the table in the linkwhich I have given, to confirm that which attribute is supported by which cmdlet (check a column Cmdlets that accept this property in the link). Get-Mailbox -Filter {RecipientType -eq 'legacy mailbox' -and last name -eq 'yates' -and department -eq 'crs ict' From this command I can see below things. - RecipientType doesnt support LegacyMailbox, you need to use RecipientTypeDetails but which works with Get-User only. - LastName & Department attributes dont work with Get-Mailbox command and you need to use Get-User Use this command and see the result Get-User -Filter {RecipientTypeDetails -eq 'LegacyMailbox' -and LastName -eq 'yates' -and Department -eq 'crs ict'}
Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2008 5:19pm

Hi, Cool that worked ..thanks Jamos J
September 23rd, 2008 5:40pm

My Pleasure...
Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2008 5:43pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics